package com.liuyang.concurrency.chapter4;

public class DEamonThread {
    public static void main(String[] args) {
        Thread t = new Thread(() ->{
            try {
                System.out.println(Thread.currentThread().getName()+" Running man");
                Thread.sleep(10_000);
                System.out.println(Thread.currentThread().getName()+" Done");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        });
        t.start();
        System.out.println(Thread.currentThread().getName());
    }

}
